import {request} from "@/utils/request";
import ApiResult from "@/api/base/ApiResult";

export const noticeDel = (data: any) => {
    return request('merchant/notice/del', data)
}

export const noticeAdd = (data: any) => {
    return request('merchant/notice/saveNotice',data)
}

export const noticeEdit = (data: any) => {
    return request('merchant/notice/updateNotice',data)
}

export const changeNoticeStatus: (data: {id: number}) => Promise<ApiResult<any>> = (data: any) => {
    return request('merchant/notice/change',data)
}